/*
 * @Description: 系统配置字典
 * @Project: 
 * @Author: michelle
 * @Date: 2022-02-22 15:35:16
 * @LastEditors: michelle
 * @LastEditTime: 2022-03-02 14:12:36
 * @Modified By: michelle
 * @FilePath: /trunkverse/config/index.jsx
 */
export * from './menu'
export * from './storage'

const { VITE_HTTP_BASE, VITE_DEV } = import.meta.env
const PROD = VITE_DEV === 'false'
const isDevelopment = !PROD

const CONFIG = {
    title: 'Trunkverse',
    isProduction: PROD, //是否为线上发布环境
    baseURL: '/',
    isDevelopment, //是否为开发环境
    http: { //目前用不到
        baseURL: VITE_HTTP_BASE 
    },
    development: {
        cdn: './',
        apiBaseUrl: '/api' // 开发环境接口请求，后用于 proxy 代理配置
    },
    production: {
        cdn: '//s.xxx.com/vite-react-app/release', // 正式环境 cdn 路径
        apiBaseUrl: '//www.xxx.com/v1' // 正式环境接口地址
    }
}

export default CONFIG